package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class PrescriptionVisit {

    private int prescriptionId;
    @Excel(name = "就诊单号")
    private int pVisitId;
    @Excel(name = "患者姓名")
    private String patientName;
    @Excel(name = "药品名称")
    private String drugName;
    @Excel(name = "药品数量")
    private int drugCount;
    @Excel(name = "药品总价")
    private float drugPrice;
    @Excel(name = "处方状态")
    private String drugStatus;
    @Excel(name = "其他备注")
    private String checkNotes;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;


    public int getPrescriptionId() {
        return prescriptionId;
    }

    public void setPrescriptionId(int prescriptionId) {
        this.prescriptionId = prescriptionId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public int getDrugCount() {
        return drugCount;
    }

    public void setDrugCount(int drugCount) {
        this.drugCount = drugCount;
    }

    public float getDrugPrice() {
        return drugPrice;
    }

    public void setDrugPrice(float drugPrice) {
        this.drugPrice = drugPrice;
    }

    public String getDrugStatus() {
        return drugStatus;
    }

    public void setDrugStatus(String drugStatus) {
        this.drugStatus = drugStatus;
    }

    public String getCheckNotes() {
        return checkNotes;
    }

    public void setCheckNotes(String checkNotes) {
        this.checkNotes = checkNotes;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public int getpVisitId() {
        return pVisitId;
    }

    public void setpVisitId(int pVisitId) {
        this.pVisitId = pVisitId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("prescriptionId", getPrescriptionId())
                .append("pVisitId", getpVisitId())
                .append("patientName", getPatientName())
                .append("drugName", getDrugName())
                .append("drugCount", getDrugCount())
                .append("drugPrice", getDrugPrice())
                .append("drugStatus", getDrugStatus())
                .append("checkNotes", getCheckNotes())
                .append("updatedAt", getUpdatedAt())
                .toString();
    }
}
